package com.nf.entity;

public class Student {
    public Student(String name, int age, Car1 car1) {
        this.name = name;
        this.age = age;
        this.car1 = car1;
    }

    private String name;
    private int    age;
    private Car1    car1;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Car1 getCar() {
        return car1;
    }

    public void setCar(Car1 car) {
        this.car1 = car;
    }
}
